package Components.DB;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * the persistence class of Buser Table
 * 
 * @author liangli
 * 
 */

@Entity
@Table(name = "Buser")
public class Buser implements Serializable {
	int Buser_id, valid;
	String username, password, general_ip, remark;
	Date register_date;

	@Id
	public int getBuser_id() {
		return Buser_id;
	}

	public void setBuser_id(int buser_id) {
		Buser_id = buser_id;
	}

	@Column(insertable = false)
	public int getValid() {
		return valid;
	}

	public void setValid(int valid) {
		this.valid = valid;
	}

	@Column
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column
	public String getGeneral_ip() {
		return general_ip;
	}

	public void setGeneral_ip(String general_ip) {
		this.general_ip = general_ip;
	}

	@Column
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "Register_date", updatable = false)
	public Date getRegister_date() {
		return register_date;
	}

	public void setRegister_date(Date register_date) {
		this.register_date = register_date;
	}

}
